package com.situ.temp;

public class Teacher extends Person{
//    private int id;
//    private String name;
//    private int age;
    private double salary;

//    public void show() {
//        System.out.println("Teacher.show");
//    }

    public void teach() {
        System.out.println(name + "正在教学");
    }

    public double getSalary() {
        return salary;
    }

    public void setSalary(double salary) {
        this.salary = salary;
    }
}
